updated js to be editable