Pure javascript picture gallery for Appcelerator Titanium