add common js, set auto height