convenience functions for tokenizing javascript strings