Introducing timeout due to inactivity
Very dirty JavaScript due to my poor skills on Angular.js
Refactoring and avoiding dirty globals
Increasing idle time and pooling interval
Changes to make JSHint happy
Removing unnecessary comments
Changing to the correct jQuery path
Inclusion of the prefered version to avoid trouble