Don't save division if Cancel is pressed. Fixes #175
Don't 404 when loading JS on subdirectory pages (e.g. /account)