Add some exercises and move inline code into js files