Hitbox javascript api implementation