deleted a little too much js... back to functional