fixed #70
implemented javascript logic to get numeric values. fix #54