Move JS specific to the SQL panel to its own file.