minor changes to js