Fixed the macro to add a semicolon at the end of a js function.