Move vibration api source code into js-folder