Fixed code related to js/html demos