adding function to pass CSS class names to JS file