jshinted + replaceKey fix