JavaScript Library in increase the PhoneGap Code reusability