JavaScript parser and sandbox