I\'ve been usually to include javascript files in my plugins in the following way:
function A_pubblish_scriptFEnd(){ $A_scriptFE=plugins_url( \'Js/CPFront.js\', _