Replaced typescript with generic javascript