Object Editor Javascript