Test the javascript functions in windows form