better isolation of current part in js parser