Create jquery plugin
Function to retrieve value and ratio