support 4.1
use javascript RegExp
Update regexp as_json
use rails in gemspec
add regenerated javascript