Cross platform Titanium photo gallery CommonJS module