finish build function
have fun with requirejs