Move JavaScript configuration to babel