Also, if you've set up the LIS3DH module nothing stops you from calling acc.r(reg_addr) and acc.wr(reg_addr,data) which might save you some duplication.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It seems from http://www.espruino.com/modules/LIS3DH.js that the default address is 25 (0x19) - so that could be it?
Also, if you've set up the LIS3DH module nothing stops you from calling
acc.r(reg_addr)
andacc.wr(reg_addr,data)
which might save you some duplication.