Better set-up for sanitization of options
Prevent js error if no elms are found
Always use braces
Tested & found working in WP 3.9