on load, if no gist, switch to js