Make the $location properties actually functions.
Make the $location properties actually functions.

This was a mistake in the first implementation.

saymedia/angularjs-server,tranphuoctien/angularjs-server,fusikky/angularjs-server