Moved functionality from generate_js_from_thrift.sh into Gruntfile