cleaned up message js