fixing JS