Moved update symlink status .js code in to a function and re-set focus. Couple of other small code tweaks.