Refactor javascript code.
Add option to change the default tag
Update the README file