import of https://code.google.com/p/jsstrip/