[NF] Reorganize java script support.