js readability improvement
Added timing tests