Created a jquery plugin for table view