JS working for notes scroll