Param case a string in JavaScript