Updating HTML demo template to use new JS pattern

Adding dependency to component handler