correct javascript hook