simplified vestigial js