Some HTML 5 gaming concepts using javascript