passed values to javascript