Cart class placed into a separate js file
Look at the console debug display to see data.
Note that you should view the page through localhost.