fix js path and other small problems