SetFields javascript function moved to separated js file.