convert example project from coffee to javascript. added author and license details.