add requirejs auto compiling

add requirejs auto compiling for production and development
Merge branch 'issue-#3'