work from Eric's Javascript and jquery class