add missing html start tag to demo index
add use strict
remove unwanted semicolon
cleanup
add type comparison