Fix doctype
Handle movement animation in JS