random ajax stuff that should be removed later and inclusion of external library jQ