Added clear guess function to javascript