Added consoles so that the variables would print to the console and added comments to those lines.  Changed newheight variable to newHeight.