t7: Added migration and updated make target
t7: refactor js
t7: added test