Tweaked language switching js for github.io paths