adds initial javascript and beginnings of media queries