Define cached variable outside of timeout.
Add jshintrc.