Convert code to plain JavaScript