don't emit javascript code for functions with no body