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

Fixed bug (inconsistency between controller & JS)