added package.json and alternate way to register task