Remove JS specific bits