Fixed javascript being in wrong directory