Add translation, move shell code from html to scripts.