Renamed the example script to index.html
refactor so the source scripts and callback function are seperate from the loader script.