Beginning cordova logic separation on trek factory