Solved problem with javascript.