converted some slides to javascript