made javascript unobtrusive and installed jquery for selectors.