A javascript pl @postgresql . code from plv8js, with require.js