Fixed bug (inconsistency between controller & JS)
Merge pull request #16 from semenyukdmitriy/rails4

Fixed bug (inconsistency between controller & JS)