add text truncation, refactor for errors and keys, update jasmine-jquery