requireJs modules implementation