JavaScript file for grove voltage divider