replace contents of file with browserified