moved js libs into lib dir
refactored temp variable