symlinks: add creation of symlinks, corrected JS