Warning fade in working

made it so the new warnings have a fade in affect, and started work on
the timed fade out of the warning elements. Also all the javaScript
functions were moved to their own file.