I think as a general rule we should try and stick to using external JS files, makes for saner debugging?