re-write of plugin to support iPad (issue #3) // v.0.2.0