work for js and active records
Merge pull request #6 from ahurjui/dev

work for js and active records