Edits JS file and address DRY issue in JS file