use fixed header by default
add deviceready comment code for cordova