Updated lesson content function, genral clean up of js