Creating jquery plugin for uptime test