load scripts defined in page metadata