First shot at complete js app