function wpifs_loading_html_render()
{
    ?>
  <?php 
    wp_editor(wpifs_option('loading_html'), 'wpifs_loading_html');
    ?>
  <?php 
}
function wpifs_add_scripts()
{
    wp_register_script('jquery.sifs', plugins_url('js/jquery.sifs.js', __FILE__), array('jquery'));
    wp_register_script('wpifs', plugins_url('js/wpifs.js', __FILE__), array('jquery.sifs'));
    wp_localize_script('wpifs', 'wpifs_options', array('container' => wpifs_option('container_selector'), 'post' => wpifs_option('post_selector'), 'pagination' => wpifs_option('pagination_selector'), 'next' => wpifs_option('next_selector'), 'loading' => wpifs_option('loading_html')));
    wp_enqueue_script('jquery.sifs');
    wp_enqueue_script('wpifs');
}