requirejs plugin to replace global variables
add new line at the end
revised according to code review
Merge pull request #7 from tristanguo/develop

add requirejs plugin for replacing global variables with required module