fixed action name
added txt
better JS namespace
better boilerplate
corrected comment