Fix javascript error and try to make plugin independant from sf core
package.