reorganize dependency of .js files(use require)