adding <select>s to index.php and writing out main functions needed in  vis.js