Update the Swanalekha Malayalam javascript library

* Code cleanup and refactoring
* Fixes some duplicate rules
* Seperated the styling of input widget and made it optional