Fix configuration for sf2.3 + Refactory js with jquery