Removed unnecessary styling in JS, replaced setAttribute instances