Fixed sub add js code