Fixed Javascript typo regarding max height

There was a JS error when using the "Maximum height" field in portlet settings.
Probably just a typo. Fixed it. Thanks for merging.