Update the structure of javaScript files

Update the structure of JavaScript files to separate third party
vendor libraries from the actual application libraries.

Update require.js configuration