Move module out of script and add css file