vagrant: upgrade before installing packages

also get rid of $j JS variable