Make simulator controller work on both production and development servers