derp, pruning old js code