fix js linking problem on plain tiles