removed unused code from portable libraries.js