Add app js and learn to define module in requirejs