init phonegrap