Changes to SP JS