Starting work on js event capture