move config to inline js