switched to rawgit.com for preview as htmlpreview.github.io breaks jquery code by running it twice