using requirejs for loading dependencies