js is an invalid external file type