Ensure scripts and styles are enqueued on the proper hook

Otherwise, the sky will fall on your head.