Convert javascript to a YUI module
Fix indentation
Readd missing lang string
Update TODO