changes to js add