Tidied up Scripts.js