killed spacebar bugs, more robust regex in urls

also greatly simplified scripts in dev.js