Landscaping javascript