Added working back js function
Merge