use require.js to load js files

Change-Id: If09d47fec61190a964d9958945ff4a2160975de4