Sc chamber not shown result page

#260 
Generally I declare all variables at the top of the method. It is some kind of design practice for javascript, which helps you not miss variable declaration. Missing variable declaration is a really big deal in javascript.