Implemented custom argument conversion for R->JS calls