One simple approach to javascript tokenization.