Dynamically Add Class In Javascript Syntax For Opening