jquery-solution, seems to work