Add source url for safeApply()

This function is not my work, so credit it properly.