fix(js/demo/display/basic.partial): syntax error in core demo display code

Also fixed indents and else blocks.