Simple JS class to manage text field default values.