added flowtype js