Learning crafty and js