URL input handling modified

replace all space with '-' for better url handeling
Update edit.js
Merge pull request #148 from amirhossein693/master

URL input handling modified