Continued to add the conditionals to the js script.