small js bug fix, vagrant works again

rewrite of the vagrant configuration. worked on my machine, although configuration screen is missing css styling. Didn't check yet if this is vm related or a bug/feature introduced by someone else. Setup is functional and styling is working after finishing the friendica setup.