JS creation fix