Moved matrix component to js dir