Fix oxitems assets embedding
Fix oxpoints assets embedding
Move jQueryPath and preloaderPath code into function
Reduce amount of copy-paste code