moved js dependencies to lib