frontend code for the visnav edx online lecture