allow apps.js -p option to be an int or string
fixed mistake in hubba.js