Mostly just fixed string replace for chrome.

Also added a movement mode where the coordinates are bounded.