Fixes #29

Save button does not call the right javascript function.