WP-2882: Added selectbox method in custom javascript