Update rs.js, move external JS libs to vendor dir