Add the getter and sync param js