Put all code related to URL output  within restler callback