Merge pull request #5 from ahurjui/dev

changed active records functionality
work for js and active records