Fixed javascript dependancy