Reimplemented without using jquery

Based off splitter example linked to in
https://github.com/increpare/PuzzleScript/pull/132#issuecomment-40552219