fix js includes with bad URLs