change smart content algorithm: remove leaf div
fix javascript url bug