JS errors preventing me from saving