added player.vx check, general improvements

organized basic.js, and improved index.html
changed air friction

airFriction = 0.999