using requireJS to handle route reloading

script will be loaded only once