Switched checkbox checked from css to js