use require.config for third party dependencies
also, switch DOM manipulation to use jquery for browser support