Moved stuff to scripts.js