Added JS libraries
Moved js requests from externally to internally