compile files for phonegap