switched to localize script instead of wp_head