minor javascript play