Move third party dependencies to js/lib

Test Plan:
- Make sure app still runs without errors