Choose ports dynamically

ran grunt test.
done! good catch