use requirejs to load js script files

Change-Id: I1a31cc7909fd686503b832e9daf4bc6041e964a9