Add JavaScript implementation for chapter01