Defer JS Load to end

Closes #2