moved js to ext file; added trans for all fields