adding functionality to add JS to JS bucket