deleting unneded javascript dependences