docs($location.search) Fix return value, add example

This one was bugging me.