Draggable elements do not save their position after refreshing browser

Hi, I am building an app (https://github.com/dalareo/design-thinking) that let users create post-it-like notes in a canvas. The notes are draggable all around the canvas. I am able to save the notes’ position in the database using an event but when I refresh the browser the notes are at the initial position again. If I move the note with the mouse it automatically goes to the saves position.
I asume that I need to execute some function onRendered but I cannot find the way to solve this issue.

I am using interact.js library, but I tried with dragula and I get the same result.

Any help??

PS: solved. It was an issue with the JavaScript library syntax