engine2.js : Basic event handling and animation