Create note2_calculateAngle.js

This is the js for angle calculation