fixed a bug so you can use it without loading

there was a bug when you tried to use it by directly pasting in the code
and not loading it from a url