fixing migration to new JS framework, still need specs