Adds functions to sys to be compatible with JSB
Merge pull request #791 from ricardoquesada/sys_additions

Adds functions to sys to be compatible with JSB