more improvements based on iPhone testing, added css calc polyfill which may not be working with older iPod touch