gist tset sample javascript