split json and js
added rails samples
added rails locale/ path