Adds functions to sys to be compatible with JSB

Adds functions to sys to be compatible with JSB