Added errcodes to javascript languages