Extact plugin code to a separate JS file