JS moved out of desktop_create into desktop_helper and code refined for readability.
JS moved out of desktop_create into desktop_helper and code refined for readability.