Dama using HTML5 and js