Merge pull request #6 from SethKips/master

Updated Shop UI + New Image Loading Method
Imageloading code did not work, because the menuStart function were run before the images had finished loading (may depend on the speed of the computer/network), so the images were undefined when menu started to use them. Fixed it with a counter that starts the menu when everything is loaded, is probably not the best solution(?).
Imageloading code did not work, because the menuStart function were run before the images had finished loading (may depend on the speed of the computer/network), so the images were undefined when menu started to use them. Fixed it with a counter that starts the menu when everything is loaded, is probably not the best solution(?).
Also made the HP-loss number round down.
Merge branch 'master' of https://github.com/Fippe94/openEtG

Conflicts:
	ui.main.js
Began Work on Fixing Memory Leaks