Use same file for both main server and phonegap