fix superfluous JS and type