refer phonegapjs top