Converted item.js -> item.ts
Removed ph.barthe.IsArray()
Converted config.js -> config.ts
Converted photo_view.js -> photo_view.ts
Fixed bug caused by remapping of 'this' keyword. We need to avoid the function() keyword entirely in TypeScript.