Factor strings out of JS file