[Phoenix] Removing js from panel algo. Now works only with flexbox property.

Hudge performance boost