Lines, JSON factoring, Alert Box

worked more on the line code- put horizontal lines, fixed corner case
Factored out JSON so it isn't copied in so many different places and is
in one central place
Got Alert Box to work finally- gets me on step closer to handling errors
from server, now I just need to list what those error codes actually are