JS error junk pasted at end of file