cleaned up recovered js file for spacing and woeful end-of-input errors
continued small cleanup of javascript for formatting