javascript path issues fixed