Javascript ios-like switch control