A simple javascript Dialog System