adding the final js steps