Activity palette improvements

- properly set and get the metadata
- fix inheritance
Fix JSHint error in previous commit