Should use shim to define dependencies.

Dependencies not defined will have inconsistent loading of Javascript