use acorn to validate JS, fixes #6