added returnJson() helper-function to commonModule