Rewrote how javascript is sent to web views

Moved all JS creation into one class.
Added in a little queue.
Only execute JS on the queue if the page has loaded.
Merge pull request #38 from reachlocal/javascript_timing

Rewrote how javascript is sent to web views