attach generated js