loader fixed to work with github pages. very quick hack rather than being clever and dynamic