better javascript modes