improvements to locale example
updated Karma example