Fix bad javascript style