pretty print xml function and new snippets for jsapi 3.6

pretty print xml function, new snippets in html mode, additional
snippets in js-mode.