test(e2e): Refactor js generation.