Fixed path for JS file
Fixed url in editor
Use url_for for url building
Merge pull request #41 from nils-werner/variable_root_dir

Variable root dir