Merge pull request #2 from sagarsane/master

Added JS Code.
Input processed correctly and updated in frontend