Improved naming of js function