updated specifications branch with server error checking, JSON sending and receiving, and javascript specification edits