rename function, fix indent
drop jquery one-liner, make a moer explict JS-version