moving third party js to lib and deleting unused js and duplicate test