changed setdefaultparm() to run everytime the deviceready function is fired in config-local and changed when deviceready() is called in ngWidApp