js moved out of head, small fixes