People spend a third of the lifetime on sleep. Exercise and light exposing have critical influence on sleep quality. Exercise affects sleep efficiency, and the light exposing affect sleep circadian rhythm. This paper investigates the impact of sleep rhythm and efficiency with a HTML5-based behavior recording and analytic service - Healthy Sleep Space (HSS). HSS takes advantages of important features from HTML5, such as consistent user experience across multiple mobile device; offline processing etc. With HSS, users can record their sleep and behavioral information; then analyze collected information in the cloud, regardless of internet condition or type of mobile devices. We propose a simple Sleep Quotient (SQ) index to evaluate the quality of sleep. Based on the SQ values, HSS provides appropriate exercise and light exposing prescriptions to users eventually modify daytime behavior, and to improve sleep quality.