fix js path to be absolute