Turn classes without jQuery and some tweaks