fixing JS dependancy