added comments to serve as skeleton for planned js