crafty.js engine working