changed script from js to php, need to finish up addButton script in functions.php