JS working for notes