javascript code cleanup
change default rendering height to 400