fixed typo in wp hooks js