JavaScript file for grove heart rate sensor