CoreWM: Split up libs.js source