updating js for options