Small js bugfix