updated js path and preventing remove