Debugging Javscript loader