clean generated js