js moved to the end