Javascript ES6 - Prevent Object Mutation