Translate hard coded messages in js files + remove unused code.
use strict + remove more unused code