added licence to JS scripts