improved simple html dom speed
added some js shame for gallery metabox