added no js hook as per @foamcow's suggestion