Moved js dependencies to lib directory