Template uses grunt watch instead of regarde. Update gruntfile. Added support for AMD in lib definition