[JS] Fix for firefox, now we use underscore.js for unique() function instead of jQuery.
Added block for simple block merge.