Add support for native javascript functions