http://jsfiddle.net/amkrtchyan/4jxph/2/