fixed loading js from local dir