Fixed routes to include 'require' when calling on function