Clean up JS to eliminate linter and static analysis warnings
Re-focus last focused element with ID when submitting widget with Enter keypress on input