tiny js bugfix