iOS4 backward compatibility

Crashed when running in iOS 4.x, fixed with view controller conditional
statement. Example app.js not fully functional yet.