Added missing end brace to scripts method