Fix JS error with Chrome browser and fix css in metadata editor.