Added resource and template requirejs implementation