Extact plugin code to a separate JS file
Remove unused options argument