Move translation data to new 'data.js'

Introduce a new .js file purely for declaring data, move the large
'translations' array out to this new file so it's easier to switch
between the separate concerns of editing code and editing data.

Note that no code is executed until both .js files are loaded because
the main() function is called by window.onload() after all files have
loaded.