Move handling static css/js into a separate module