Improve javascript for context common fields, work also on not input fields