hook to add js into the head