Added triggers & gameloop

Added the triggers.js and modified the Gameloop to deal with showing
FPS in debug mode.