Whoops. Forgot to wrap the JS in a closure
Changed resource URLs to https for local purposes