added player.vx check, general improvements

organized basic.js, and improved index.html