some js fiddle code and whatnot