fix js bug with sonata_type_model add button

fixes #300