JavaScript file and SWIG modification for 6-axis accelerameter lsm303