fix typo and use camelcase for javascript variable names.
use 'defaults' instead of 'extend' in parse method when updating translated attributes to avoid overwriting new translations with old ones.