Exactly!
Make sure to first assemble function checkHeight() { and then add } after the whole code block.
function checkHeight() {
}