Replaced js with 1 single HTTP request