fixes issue #11 and issue #12, converting all to jquery and removing/renaming checkvalue