Harmonizing the two platforms to one common js file