scaffolding javascript/jQuery functions  (getHTML, getType...)