use a promise to detect deviceready event, get rid of lot of useless code related to the old version
add some css directive related to webkit and mobile