tweak js for componenting