use single regex for number literals
fix #232 - event handlers can take multiple arguments. also, ditching JSON.parse in favour of something more lenient