Phonegap application for weight management