javascript and jquery additions