Move script for checkbox to Index Page