tweeking it to load up the javascript on demand