fix pre word-wrap, move script to bottom and execute it after load event