Increase space after buy without refresh - Fix #56

Also moved code from index.html to main.js