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.

Fixes #37