Change the js to camelCase, and move the code that would hide when opening the modal window

Reviewer: Dan V

Issue: GCP-9015