fix site path in javascript