works in code pen, not here