fixed JS location issues