Update sloc.js

Add swig extension