Timer spice bug fixes and refactoring

- Fixed bug which produced a flash of unstyled content if the spice calls the `onShow` method before the CSS file loads.

![screen shot 2014-12-19 at 11 22 34 am](https://cloud.githubusercontent.com/assets/419567/5508296/30b77700-8779-11e4-9e0d-d0f60fb9700c.png)

- Fixed a bug which caused the text cursor to move to the right if the user attempted to place it at the beginning or the middle of an input.
- Made code formatting consistent (now only follows one style for things like whitespace, quotes, etc).
- Broke out more anonymous functions into named functions [like before](https://github.com/duckduckgo/zeroclickinfo-spice/pull/1341).
It would have to be `$('link[href="share/spice/timer/timer.css"]')`.

I wanted to avoid such a specific reference in case the paths ever change or a CDN is ever adopted for maintainability purposes.

But the direct reference would definitely be faster.