use javascript instead HTML for some parts