Demo of JS to HTML switch in partial