Correct spelling mistakes in lua_api.txt

Some of the API functions use "threshhold". This may be a typo in lua_api.txt, but if it isn't then the API has spelling mistakes in it as well.