momentjs : fix external module definition + added tests
Merge pull request #1918 from borisyankov/def/momentjs

momentjs : fix external module definition + added tests