If config starts with "function" than output raw javascript, else wrap in quotes